import uuid

random_uuid = uuid.uuid4()
print(random_uuid)  # 示例输出：f47ac10b-58cc-4372-a567-0e02b2c3d479

uuid1 = uuid.uuid1()
print(uuid1)  # 示例输出：6fa459ea-ee5a-11ef-9a6b-0242ac120002